package org.grow.commodity.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.grow.commodity.entity.Distributor;
import org.grow.commodity.entity.DistributorQueryCondition;

import java.util.List;


/**
 * @Author: xwg
 * @CreateDate: 21-8-9
 */

@Mapper
public interface DistributorDao extends BaseMapper<Distributor> {
//    List<Distributor> dynamicQuery(
//            @Param("qc")DistributorQueryCondition queryCondition);
    IPage<Distributor> dynamicQuery(IPage<Distributor> ipage,
            @Param("qc")DistributorQueryCondition queryCondition);

    List<Distributor> findByCodeOrName(@Param("nc") String nameOrCode);
}
